﻿using Player.Weapons;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BulletBody : MonoBehaviour
{
    protected BulletData bulletData;
    protected TimeData timeData;

    public virtual void BaseInit(BulletData bulletData, TimeData timeData, Dictionary<Type,int> types)
    {
        this.bulletData = bulletData;
        this.timeData = timeData;
        foreach (var item in types)
        {
           var com = gameObject.AddComponent(item.Key);
           ((BulletEffect)com).SetLevel(item.Value);
        }
        
    }
}
